# gozerlib/admin.py
#
#

""" admin related data and functions. """

## gozerlib imports

from gozerlib.persist.persist import Persist
from gozerlib.admin import savecmndtable, savepluginlist
from gozerlib.plugins import plugs

## basic imports

import logging

def boot():
    cmndtable = Persist('cmndtable')
    #logging.warn("command table: %s" % str(cmndtable.data))
    if not cmndtable.data:
        plugs.loadall(force=True)
        savecmndtable()
        savepluginlist()
